package aod.android.com.bernay.fixing.activity;

import android.widget.TextView;

import aod.android.com.bernay.R;
import aod.android.com.bernay.base.BernayBaseActivity;
import chen.lion.hilib.view.bind.HiView;

/**
 * <p>文件描述：所有说明页面 <p>
 * <p>作者：${SYC}<p>
 * <p>创建时间：2019/4/11<p>
 */
public class ExplainActivity extends BernayBaseActivity {

    @HiView(R.id.explain_question_tv)
    TextView explain_question_tv;

    @HiView(R.id.explain_anwer_tv)
    TextView explain_anwer_tv;

    @HiView(R.id.explain_conent_tv)
    TextView explain_conent_tv;
    private String moudel = "0";//1为出差模式 2为行驶轨迹 3为视频调取

    @Override
    protected int initLayout() {
        return R.layout.activity_explain;
    }

    @Override
    protected void initData() {
        initTitle(getString(R.string.app_explain),true);
        if(getIntent().getStringExtra("moudel")!=null){
            moudel =  getIntent().getStringExtra("moudel");
        }
        if(moudel.equals("1")){
            explain_question_tv.setText(getString(R.string.business_explain_question));
            explain_anwer_tv.setText(getString(R.string.business_explain_answer));
            explain_conent_tv.setText(getString(R.string.business_explain));
        }else if(moudel.equals("2")){
            explain_question_tv.setText(getString(R.string.travel_explain_question));
            explain_anwer_tv.setText(getString(R.string.travel_explain_answer));
            explain_conent_tv.setText(getString(R.string.travel_explain));
        }else if(moudel.equals("3")){
            explain_question_tv.setText(getString(R.string.video_explain_question));
            explain_anwer_tv.setText(getString(R.string.video_explain_answer));
            explain_conent_tv.setText(getString(R.string.video_explain));
        }
    }
}
